<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */
namespace App\Constants;

use Hyperf\Constants\AbstractConstants;
use Hyperf\Constants\Annotation\Constants;

/**
 * @Constants
 */
class ErrorCode extends AbstractConstants
{
    /**
     * @Message("Server Error！")
     */
    public const SERVER_ERROR = 500;

    /**
     * @Message("请求失败，请检查参数是否正确")
     */
    public const BAD_REQUEST = 400;

    /**
     * @Message("记录不存在")
     */
    public const NOT_FOUND = 404;

    /**
     * @Message("短信发送失败")
     */
    public const SMS_SEND_FAILED = 512;

    /**
     * @Message("操作成功")
     */
    public const SUCCESS = 0;

    /**
     * @Message("手机号已被使用")
     */
    public const MOBILE_IS_EXISTS = 521;

    /**
     * @Message("短信验证码不正确")
     */
    public const INVALID_VERIFY_CODE = 522;

    /**
     * @Message("密码不合格，请输入6位数以上的密码")
     */
    public const INVALID_PASSWORD = 523;

    /**
     * @Message("请登录后再操作")
     */
    public const LOGIN_ERROR = 403;

    /**
     * @Message("您还不是老师身份")
     */
    public const NOT_TEACHER = 413;
}
